

package com.loong.loong.hik.controller;

import com.loong.loong.common.core.util.R;
import com.loong.loong.hik.service.FaceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页
 *
 * @author jinyiang
 * @date 2023-03-30 10:02:49
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/index" )
@Api(value = "index", tags = "首页")
public class HikIndexController {

	private final FaceService faceService;

	/**
	 * 获取海康首页数据
	 * @return
	 */
	@ApiOperation(value = "首页", notes = "首页")
	@GetMapping("/index" )
	public R getHikIndex() {

		return R.ok(faceService.queryHikIndex());

	}

}
